//#include "Display.h"

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library


#ifndef DISPLAY_ST7735_H
#define DISPLAY_ST7735_H

//ST7735
#define ST77XX_RED 0x001F
#define ST77XX_GREEN 0x07E0
#define ST77XX_YELLOW 0x0FFF
#define ST77XX_jkl 0x335C
#define ST7735_shh 0x236B

#define Y_TOP 30
#define Y_CENTRE 55
#define Y_BOTTOM 90

#define X_LEFT 0
#define X_CENTRE 55
#define X_RIGHT 150

class Display{

public:
    Display();
    void clear();
    void clear(uint16_t x,uint16_t y,int16_t w,int16_t h);
    virtual ~ Display();
    void println(uint16_t x,uint16_t y,uint8_t size,const char* text);
    void println(uint16_t x,uint16_t y,uint8_t size,uint16_t color,const char* text);
private:
    Adafruit_ST7735 * st7735;
};

#endif //DISPLAY_ST7735_H